<?php $this->load->view('common/pagehead')?>
<?php $this->load->view('common/header')?>
<div id="content" class="pgwrapper1" style="background:#fff">
<div>
<div class="spec_15"></div>
<?php $this->load->view('common/browseByAlphabet'); ?>
<div class="spec_15"></div>
<div class="left w655 mr15">
<div class="p10 bdr_logo">
<div class="left">
<a href="/" class="txt_pnkLn">Home</a> <span class="txt_grysn">&raquo;</span> <span class="txt_grysn"><?php echo $bankDetailsArray[0]['bank_name'];?></span>
</div>
<div class="right">
<div class="left">
<div id="fb-root"></div><div class="fb-like mr10" data-href="http://www.facebook.com/couponskart25" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" style="display:inline"></div>
</div>
<div class="left">
<a href="https://twitter.com/couponskart25" class="twitter-follow-button" data-align="left" data-show-count="true" data-lang="en">Follow</a>
</div>
</div>
<div class="clr"></div>
</div>
<div class="spec_10"></div>
<div class="bx_shw w100">
<div class="bg1 p10_15">
<div class="left" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="<?php echo $bankDetailsArray[0]['bank_name']; ?> Offers"><h1><?php echo $bankDetailsArray[0]['bank_name']; ?> <span class="txt_pnk">Offers</span></h1>
</div>
</div>
<?php if(!empty($allBankCouponsArray)){ foreach($allBankCouponsArray as $temp){ 
                if($temp['coupon_affilateurl']!=''){ $affUrl=$temp['coupon_affilateurl']; }else{ $affUrl=$temp['store_affilateurl']; } ?>
<div class="p15 bdr_b">
<div class="left w110"><a href="/<?php echo $temp['store_url']; ?>-coupons"><img src="<?php echo $temp['store_image']; ?>" alt="" class="bdr_logo logo_shadow" /></a><br />
<?php if($temp['coupon_bank']!=0){ ?>
<span class="plus">+</span><br />
<img src="/public/images/logo_<?php echo $temp['coupon_bank']; ?>.png" alt="" hspace="16" />
<?php }?>
</div>
<div class="ml120"><span class="txt_cpn"><?php echo $temp['coupon_name']; ?></span>
<div class="spec_10"></div>
<div class="bg_code w441" style="position:relative">
<div class="left"><input type="button" value="Click to Reveal" onclick="showCouponCode('getCode<?php echo $temp['coupon_id']; ?>','<?php echo $temp['coupon_code']; ?>','<?php echo $temp['store_id']; ?>')" class="get_code" /></div>
<div class="bg_arrow"></div>
<div class="left" id="getCode<?php echo $temp['coupon_id']; ?>"><input type="button" onclick="showCouponCode('getCode<?php echo $temp['coupon_id']; ?>','<?php echo $temp['coupon_code']; ?>','<?php echo $temp['store_id']; ?>')" value="" class="get_code1" /></div>
</div>
<div class="spec_10"></div>
<div><?php echo $temp['coupon_description']; ?></div>
<div class="spec_10"></div>
<div class="left"><img src="/public/images/cal_icon.png" alt="" /></div>
<div class="left mlr10_20 txt3">Added on: <?php echo date("jS F", strtotime($temp['coupon_startdate'])); ?></div>
<div class="left"><img src="/public/images/cal_icon.png" alt="" /></div>
<div class="left mlr10_20 txt3">Expires on: <?php echo date("jS F", strtotime($temp['coupon_expiredate'])); ?></div>
</div>
</div>
<?php } } ?>
<?php if(!empty($allBankOffersArray)){ foreach($allBankOffersArray as $temp){ 
                if($temp['coupon_affilateurl']!=''){ $affUrl=$temp['coupon_affilateurl']; }else{ $affUrl=$temp['store_affilateurl']; } ?>
<div class="p15 bdr_b">
<div class="left w110"><a href="/<?php echo $temp['store_url']; ?>-coupons"><img src="<?php echo $temp['store_image']; ?>" alt="" class="bdr_logo logo_shadow" /></a><?php if($temp['coupon_bank']!=0){ ?>
<span class="plus">+</span><br />
<img src="/public/images/logo_<?php echo $temp['coupon_bank']; ?>.png" alt="" hspace="16" />
<?php } ?></div>
<div class="ml120"><a href="/waitingpage/<?php echo $temp['coupon_id']; ?>/<?php echo $temp['store_id']; ?>" target="_blank" rel="nofollow" class="offer_lnk"><?php echo $temp['coupon_name']; ?></a><br />
<?php echo $temp['coupon_description']; ?>
<div class="spec_10"></div>
<div class="left"><img src="/public/images/cal_icon.png" alt="" /></div>
<div class="left mlr10_20 txt3">Added on: <?php echo date("jS F", strtotime($temp['coupon_startdate'])); ?></div>
<div class="left"><img src="/public/images/cal_icon.png" alt="" /></div>
<div class="left mlr10_20 txt3">Expires on: <?php echo date("jS F", strtotime($temp['coupon_expiredate'])); ?></div>
</div>
</div>
<?php } } ?>
<?php if(!empty($allBankRelatedArray)){ foreach($allBankRelatedArray as $temp){ 
                if($temp['coupon_affilateurl']!=''){ $affUrl=$temp['coupon_affilateurl']; }else{ $affUrl=$temp['store_affilateurl']; } ?>
<div class="p15 bdr_b">
<div class="left w110"><a href="/<?php echo $temp['store_url']; ?>-coupons"><img src="<?php echo $temp['store_image']; ?>" alt="" class="bdr_logo logo_shadow" /></a><br />
<?php if($temp['coupon_bank']!=0){ ?>
<span class="plus">+</span><br />
<img src="/public/images/logo_<?php echo $temp['coupon_bank']; ?>.png" alt="" hspace="16" />
<?php }?>
</div>
<div class="ml120"><span class="txt_cpn"><?php echo $temp['coupon_name']; ?></span>
<div class="spec_10"></div>
<div class="bg_code w441" style="position:relative">
<div class="left"><input type="button" value="Click to Reveal" onclick="showCouponCode('getCode<?php echo $temp['coupon_id']; ?>','<?php echo $temp['coupon_code']; ?>','<?php echo $temp['store_id']; ?>')" class="get_code" /></div>
<div class="bg_arrow"></div>
<div class="left" id="getCode<?php echo $temp['coupon_id']; ?>"><input type="button" onclick="showCouponCode('getCode<?php echo $temp['coupon_id']; ?>','<?php echo $temp['coupon_code']; ?>','<?php echo $temp['store_id']; ?>')" value="" class="get_code1" /></div>
</div>
<div class="spec_10"></div>
<div><?php echo $temp['coupon_description']; ?></div>
<div class="spec_10"></div>
<div class="left"><img src="/public/images/cal_icon.png" alt="" /></div>
<div class="left mlr10_20 txt3">Added on: <?php echo date("jS F", strtotime($temp['coupon_startdate'])); ?></div>
<div class="left"><img src="/public/images/cal_icon.png" alt="" /></div>
<div class="left mlr10_20 txt3">Expires on: <?php echo date("jS F", strtotime($temp['coupon_expiredate'])); ?></div>
</div>
</div>
<?php } } ?>
<?php if(!empty($allRelatedBankOffers)){ foreach($allRelatedBankOffers as $temp){ 
                if($temp['coupon_affilateurl']!=''){ $affUrl=$temp['coupon_affilateurl']; }else{ $affUrl=$temp['store_affilateurl']; } ?>
<div class="p15 bdr_b">
<div class="left w110"><a href="/waitingpage/<?php echo $temp['coupon_id']; ?>/<?php echo $temp['store_id']; ?>" target="_blank" rel="nofollow"><img src="<?php echo $temp['store_image']; ?>" alt="" class="bdr_logo logo_shadow" /></a><?php if($temp['coupon_bank']!=0){ ?>
<span class="plus">+</span><br />
<img src="/public/images/logo_<?php echo $temp['coupon_bank']; ?>.png" alt="" hspace="16" />
<?php } ?></div>
<div class="ml120"><a href="/waitingpage/<?php echo $temp['coupon_id']; ?>/<?php echo $temp['store_id']; ?>" target="_blank" rel="nofollow" class="offer_lnk"><?php echo $temp['coupon_name']; ?></a><br />
<?php echo $temp['coupon_description']; ?>
<div class="spec_10"></div>
<div class="left"><img src="/public/images/cal_icon.png" alt="" /></div>
<div class="left mlr10_20 txt3">Added on: <?php echo date("jS F", strtotime($temp['coupon_startdate'])); ?></div>
<div class="left"><img src="/public/images/cal_icon.png" alt="" /></div>
<div class="left mlr10_20 txt3">Expires on: <?php echo date("jS F", strtotime($temp['coupon_expiredate'])); ?></div>
</div>
</div>
<?php } } ?>
<div class="spec_2"></div>
</div>
<div class="spec_15"></div>
</div>
<div class="left w320">
<div class="p10 bdr_logo">
<a href="<?php echo $bannersArray[0]['banner_link']; ?>" target="_blank" rel="nofollow"><img src="<?php echo $bannersArray[0]['banner_image']; ?>" height="250" width="300" alt="<?php echo $bannersArray[0]['banner_alt']; ?>" /></a>
</div>
<div class="spec_15"></div>
<?php $this->load->view('common/fb_widget'); ?>
<div class="spec_15"></div>
<?php $this->load->view('common/bank-page-logos'); ?>
<div class="spec_15"></div>
<?php $this->load->view('common/categoryPanel'); ?>
<div class="spec_15"></div>
<div class="w100 bx_shw">
<div class="bg1 p10_15 txt1"><h2>Related <span class="txt_pnk">Offers</span></h2></div>
<ul style="list-style:disk">
<?php foreach($similarOffersArray as $temp){ ?>
<li class="p7_15"><a href="/<?php echo $temp['store_url']; ?>-coupons" class="rel_offers"><?php echo $temp['coupon_name']; ?></a> <strong>- <?php echo $temp['store_name']; ?></strong></li>
<li class="clr bdr_b"></li>
<?php } ?>
</ul>
<div class="spec_2"></div>
</div>
</div>
<div class="spec_15"></div>
<?php $this->load->view('common/search'); ?>
<div class="spec_15"></div>
<?php $this->load->view('common/banners'); ?>
<div class="spec_15"></div>
</div>
</div>
<?php $this->load->view('common/footer')?>
<script>(function(e,a,f){var c,b=e.getElementsByTagName(a)[0];if(e.getElementById(f)){return}c=e.createElement(a);c.id=f;c.src="//connect.facebook.net/en_US/all.js#xfbml=1";b.parentNode.insertBefore(c,b)}(document,"script","facebook-jssdk"));</script>
<script>!function(e,a,f){var c,b=e.getElementsByTagName(a)[0];if(!e.getElementById(f)){c=e.createElement(a);c.id=f;c.src="//platform.twitter.com/widgets.js";b.parentNode.insertBefore(c,b)}}(document,"script","twitter-wjs");</script>
<script type="text/javascript">(function(){var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src="https://apis.google.com/js/plusone.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();</script>